package com.rgp.apidriver.feign;

import com.rgp.internalcommon.dto.OrderDto;
import com.rgp.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-26 16:41
 */
@FeignClient("service-order")
public interface ServiceOrderClient {

    @PostMapping("/order/to-pick-up-passenger")
    public ResponseResult toPickUpPassenger(@RequestBody OrderDto orderDto);

    @PostMapping("/order/driver-arrive-departure")
    public ResponseResult driverArriveDeparture(@RequestBody OrderDto orderDto);

    @PostMapping("/order/pick-up-passenger")
    public ResponseResult pickUpPassenger(@RequestBody OrderDto orderDto);

    @PostMapping("/order/passenger-get-off")
    public ResponseResult passengerGetoff(@RequestBody OrderDto orderDto);
}
